import React, { useReducer } from 'react'
import publicReducer from '@/store/reducers';

const { navBarReducer } = publicReducer;

interface IProps {}
//引入父组件跟子组件同一个reducer
function SubNavBarReducer(props: IProps) {
    //首先第一步  初始化reducer
    const [navBarState, navBarDispath] = useReducer(navBarReducer.reducer, navBarReducer.initState)
    return (
        <div className="container">
            <div>navBar子组件</div>
        </div>)
}
export default SubNavBarReducer